﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Ecriture
{
    class Program
    {
        static void Main(string[] args)
        {
            StreamWriter file;
            try
            {
                file = new StreamWriter("texte.txt");
            }
            catch (IOException exc)
            {
                Console.WriteLine("Impossible d'ouvrir le fichier" + exc);
                Console.ReadLine();
                    return;
            }
            string line = Console.ReadLine();
            file.WriteLine(line);
            file.Close();
        }
    }
}
